home *** CD-ROM | disk | FTP | other *** search
/ Travel Adventure! / Travel Adventure!.iso / pc / _bbs / pcbtool / doit.bat < prev    next >
DOS Batch File  |  1994-04-16  |  679b  |  21 lines

  1. rem %1 == disc directory
  2. if exist %cdrom%%1\00_index.txt goto ok
  3. echo no such file: %cdrom%%1\00_index.txt >> logfile
  4. goto end
  5. :ok
  6. if exist %output%\dir%2 goto bad
  7. goto ok2
  8. :bad
  9. echo duplicate output file: %output%\dir%2 >> logfile
  10. goto end
  11. :ok2
  12. type %cdrom%\_bbs\pcbtool\header1 > %output%\dir%2
  13. %cdrom%\_bbs\get_area other 0 %1 < %cdrom%\_bbs\dirs.txt >> %output%\dir%2
  14. echo path: %1 >> %output%\dir%2
  15. type %cdrom%\_bbs\pcbtool\header2 >> %output%\dir%2
  16. rem cd %cdrom%%1
  17. %cdrom%\_bbs\c %in_type% pcb %cdrom%%1 < %cdrom%%1\00_index.txt >> %output%\dir%2
  18. rem cd %cdrom%\_bbs\pcbtool
  19. dirlst %output%\dir%2 %cdrom%%1\ %1 < %cdrom%\_bbs\dirs.txt >> dir.lst
  20. :end
  21.